package com.wpf.system.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 器材袋
 * @TableName equipment_bag
 */
@TableName(value ="equipment_bag")
@Data
public class EquipmentBag implements Serializable {
    /**
     * 器材袋主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 所属用户主键
     */
    private Long uid;

    /**
     * 器材主键
     */
    private Long eid;

    /**
     * 数量
     */
    private Integer number;

    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 最后修改时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 版本号
     */
    @Version
    private Long version;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}